package com.biz.primus.management.commodity.feign;

import com.biz.primus.base.vo.price.PriceItemVo;
import com.biz.primus.common.vo.SpringPageVO;
import com.biz.primus.management.commodity.degraded.DegradedPriceFeignClient;
import com.biz.primus.model.price.vo.PriceQueryVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 价格Feign Client
 * @author lining
 */
@FeignClient(name="service-price",fallback = DegradedPriceFeignClient.class)
public interface PriceFeignClient {
    @PostMapping("soa/priceService/findAllPrice")
    SpringPageVO<PriceItemVo> findAllPrice(@RequestBody PriceQueryVo reqVo);
}
